import { createRouter, createWebHashHistory } from "vue-router";

import Create from '../view/Create.vue'
import Index from '../view/Index.vue'
import Eye from '../view/Eye.vue'
import Gain from '../view/Gain.vue'

export default createRouter({
    history: createWebHashHistory(),//hash模式
    routes: [
        {
        path: "/",
        component: Index,
        children: [
            {
                path: 'create',
                component: Create,
            },
            {
                path: 'gain',
                component: Gain,
            },
            {
                path: 'eye',
                component: Eye,
            },
        ]
    },

    ]//路由配置规则数组
})